const none = -1; //定义常量
const left = 0;
const center = 1;
const right = 2;

let Map = function () {
    this.map = {
        __version__: 10000,
        __name__ : "Map",
        // 开发分辨率
        __resolving__ : {
            w: 1080,
            h: 1920
        },
        // 默认相似度
        similarity : 95,
        // 默认偏移
        deviation : 0,
        // 屏幕方向
        __screenOrientation__ : "horizontal",
        // 地图数据
        __mapData__ : [
            {
                name: "庭院",
                dataArr: [
                    {
                        desc: [1920,1080,
                            [[right,1607,66,0xd9be9c],
                            [right,1586,61,0xd7af82],
                            [right,1606,46,0xd7b48a],
                            [right,1626,61,0xd7b186],
                            [right,1617,82,0xd0a77a],
                            [right,1594,83,0xcca172],
                            [right,1573,77,0x312a2f],
                            [right,1585,39,0x2f2932],
                            [right,1625,38,0x312931]]
                        ]
                    },
                    {
                        desc: [1920,1080,
                            [[none,587,19,0x45342c],
                            [none,522,18,0x4b3a31],
                            [none,543,45,0x573e3e],
                            [none,546,73,0x7a5825],
                            [none,564,111,0x785826],
                            [none,560,135,0x7a5825]]
                        ]
                    }
                ]
            },
            {
                name: "战斗",
                // 兼容[探索、御魂、觉醒、突破、剧情、经验妖怪、金币妖怪、妖气、愤怒的石柜]
                dataArr: [
                    {
                        desc: [1920,1080,
                            [[left,43,35,0xdbb48b],
                            [left,68,37,0xdbb58e],
                            [left,47,59,0xd0a679],
                            [left,153,65,0xcda173],
                            [left,259,55,0xcaa274],
                            [left,279,55,0xcea577],
                            [left,260,33,0xd3af85]]
                        ]
                    }
                ]
            },
            
            {
                name: "协战队伍",
                dataArr:[
                    {
                        desc: [1920,1080,
                            [
                            [left,63,54,0xf3eaae],
                            [left,84,41,0xebd591],
                            [left,81,72,0xefd38e],
                            [left,55,95,0xb08f65],
                            [left,96,94,0xc69d6b],
                            [left,172,55,0xf8f3e0],
                            [left,176,78,0xf8f3e0],
                            [left,152,59,0xf8f3e0]
                            ]
                        ]
                    }
                ]
            },

            {
                name: "剧情",
                dataArr: [
                    {
                        desc: [1920,1080,
                            [[left,43,47,0xd7c5a2],
                            [left,77,48,0xd5c5a4],
                            [left,71,77,0xd5c4a2],
                            [left,45,75,0xd5c4a2]]
                        ]
                    }
                ]
            },
            {
                name: "探索",
                dataArr: [
                    {
                        desc: [1920,1080,
                            [[left,57,103,0xeff5fb],
                            [left,93,92,0x33467f],
                            [left,44,68,0x251057],
                            [left,46,126,0x1c1421],
                            [left,87,138,0x1d1a3a],
                            [left,79,49,0x1c1334],
                            [left,81,114,0xdfebf7]]
                        ]
                    }
                ]
            },

            {
                name: "御魂界面",
                dataArr: [
                    {
                        desc:[1920,1080,
                            [[left,190,47,0xf4efdc],
                            [left,187,63,0xf5f0dd],
                            [left,198,61,0xf7f2df],
                            [left,211,55,0xe1dcca],
                            [left,211,80,0xebe6d4],
                            [left,219,71,0xf6f1df],
                            [left,222,53,0xf8f3e0],
                            [left,212,66,0xf2eddb]]
                        ]
                    },
                    {
                        desc:[1920,1080,
                            [[left,28,68,0xc5cce1],
                            [left,44,40,0xb7c8dd],
                            [left,42,77,0xc3cbdf],
                            [left,152,45,0xf8f3e0],
                            [left,151,57,0xf8f3e0],
                            [left,144,67,0xf4efdc],
                            [left,149,79,0xebe6d4],
                            [left,161,51,0xf8f3e0],
                            [left,293,52,0xe4c258]]
                        ]
                    }
                ]
            },

            {
                name: "组队",
                dataArr:[
                    {
                        desc:[1920,1080,
                            [[left,66,58,0xefdfa9],
                            [left,102,58,0x221913],
                            [left,139,61,0x0e0d0e],
                            [left,160,49,0xf8f3e0],
                            [left,154,59,0xf8f2df],
                            [left,157,80,0xf7f2df],
                            [left,160,88,0x0a090a]]
                        ]
                    }
                ]
            },  
            {
                name: "探索Home",
                dataArr:[
                    {
                        desc: [1920,1080,
                            [[center,753,42,0x681412],
                            [center,752,68,0xa1c3c3],
                            [center,1055,28,0x114466],
                            [center,1042,54,0xd2c1b2],
                            [center,1316,36,0xf17a36],
                            [center,1319,57,0x12150e]]
                        ]
                    },
                    {
                        desc: [1920,1080,
                            [[center,754,39,0x72130f],
                            [center,741,55,0x7eb1b1],
                            [center,1033,39,0xff9a41],
                            [center,1031,62,0x181e14],
                            [center,1343,37,0x2d5365],
                            [center,1333,56,0xa5947c]]
                        ]
                    },
                    {
                        desc:[1920,1080,
                            [
                            [center,1317,28,0xfa5b30],
                            [center,1323,60,0x192218],
                            [center,1054,26,0xc2a86c],
                            [center,1047,51,0x5e7389],
                            [center,753,28,0xa47944],
                            [center,747,61,0xbfbfbf]
                            ]
                        ]
                    },
                    {
                        desc: [1920,1080,
                            [
                            [center,1343,56,0x787d8d],
                            [center,1346,29,0x31505a],
                            [center,1009,26,0xec702e],
                            [center,1026,58,0x181e0f],
                            [center,757,31,0x883f17],
                            [center,749,56,0x876464]
                            ]
                        ]
                    }
                ]
            },
            {
                name: "结算",
                dataArr:[
                    {
                        desc:[1920,1080,
                            [[left,119,997,0xaa7755],
                            [left,119,976,0x3c2a20],
                            [left,106,970,0xbbaa77],
                            [left,106,996,0xaa7755],
                            [left,132,986,0xa7865c],
                            [left,115,1011,0x382820]]
                        ]
                    }
                ]
            },
            {
                name: "结界突破",
                dataArr:[
                    {
                        desc:[1920,1080,
                            [
                            [center,947,142,0x725949],
                            [center,891,138,0xf7f2df],
                            [center,968,148,0xf8f3e0],
                            [center,1093,130,0xe3c359],
                            [center,1092,154,0xd29a37],
                            [center,956,98,0x6c4b22]
                            ]
                        ]

                    }
                ]
            }
        ]
    }
}

module.exports = Map

